package org.jet.emall.prod.service;

import org.jet.emall.prod.dto.NewOrderDTO;
import org.jet.emall.prod.dto.OrderDTO;

import java.util.List;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-04-30 11:33
 */
public interface CustomOrderService {

    /**
     *  保存新订单
     * @param dto
     */
    Long save(NewOrderDTO dto);

    /**
     *
     * @param customerId
     * @return
     */
    List<OrderDTO> list(Long customerId);

    /**
     *  修改订单状态
     * @param code
     * @param status
     */
    void update(String code, Byte status);

    /**
     *  获取订单详情
     * @param id
     * @return
     */
    OrderDTO getOrderById(Long id);
}
